package com.cuijq.ms.mediatordesign.v1;

import com.sun.corba.se.spi.orbutil.fsm.Input;
import java.awt.*;

/**
 * @author by CuiJQ
 * @Classname UIControl
 * @Description UIControl Description
 * @Date 2021/5/31 16:01
 */
public class UIControl {

  private static final String LOGIN_BTN_ID = "login_btn";
  private static final String REG_BTN_ID = "reg_btn";
  private static final String USERNAME_INPUT_ID = "username_input";
  private static final String PASSWORD_INPUT_ID = "pswd_input";
  private static final String REPEATED_PASSWORD_INPUT_ID = "repeated_pswd_input";
  private static final String HINT_TEXT_ID = "hint_text";
  private static final String SELECTION_ID = "selection";

  public static void main(String[] args) {
//    Button loginButton = (Button) findViewById(LOGIN_BTN_ID);
//    Button regButton = (Button) findViewById(REG_BTN_ID);
//    Input usernameInput = (Input) findViewById(USERNAME_INPUT_ID);
//    Input passwordInput = (Input) findViewById(PASSWORD_INPUT_ID);
//    Input repeatedPswdInput = (Input) findViewById(REPEATED_PASSWORD_INPUT_ID);
//    Text hintText = (Text) findViewById(HINT_TEXT_ID);
//    Selection selection = (Selection) findViewById(SELECTION_ID);
//    loginButton.setOnClickListener(new OnClickListener() {
//      @Override
//      public void onClick(View v) {
//        String username = usernameInput.text();
//        String password = passwordInput.text(); //校验数据... //做业务处理...
//      }
//    });
//    regButton.setOnClickListener(new OnClickListener() {
//      @Override
//      public void onClick(View v) { //获取usernameInput、passwordInput、repeatedPswdInput数据... //校验数据... //做业务处理...
//      }
//    });
  }
}
